﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using AIO.Entity.Base;

namespace AIO.Entity
{
    [Table("TA01")]
    public class TeacherAttender : BaseEntity
    {
        [Required]
        [Column("TA001"), MaxLength(50)]
        public string? TeacherName { get; set; }

        [Required]
        [Column("TA002")]
        public Guid TeacherId { get; set; }

        [Column("TA003")]
        public DateTime Date { get; set; }

        [Column("TA004")]
        public bool IsPresent { get; set; } // 是否出勤

        [Column("TA005")]
        public string? AbsenceReason { get; set; } // 缺勤原因

    }
}
